package com.sumer.psychology.common.port.adapter.service;

import com.sumer.psychology.common.domain.model.Student;
import com.sumer.psychology.common.domain.model.User;

/**
 * 测试用的
 * <p/>
 * Created by twer on 15/3/17.
 */
public class MockUserInRoleAdapter extends HttpUserInRoleAdapter {
    public MockUserInRoleAdapter() {
        super(null, null, null, null);
    }

    @Override
    public User toUser(String anIdentity) {
        return new Student(anIdentity, anIdentity + " name");
    }

}
